//
//  HeaderCollectionReusableView.m
//  11111
//
//  Created by lanou3g on 15/10/29.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "HeaderCollectionReusableView.h"

@implementation HeaderCollectionReusableView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addHeaderViews];
    }
    return self;
}

- (void)addHeaderViews
{
    self.imageButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.imageButton.frame = CGRectMake(5 * kWidth, 5 * kHeight, kScreenWidth - 20 * kWidth, 200 * kHeight);
    self.bigImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth - 20 *kWidth, 200 * kHeight)];
    [self.imageButton addSubview:self.bigImage];
    self.imageButton.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.imageButton];
    
    self.labelLeft = [[UILabel alloc] initWithFrame:CGRectMake(30 * kWidth, self.imageButton.bottom + 10 * kHeight, 200 * kWidth, 20 * kHeight)];
    self.labelLeft.font = [UIFont systemFontOfSize:20];
    self.labelLeft.textColor = [UIColor brownColor];
    self.labelLeft.text = @"总有一款属于你";
   // self.labelLeft.backgroundColor = [UIColor redColor];
    [self addSubview:self.labelLeft];
    
    for (int i = 0; i < 2; i++) {
       // self.button = [[UIButton alloc] initWithFrame:CGRectMake(280 + i * 60, 225, 50, 50)];
        self.button = [UIButton buttonWithType:(UIButtonTypeSystem)];
        self.frame = CGRectMake(260 * kWidth + i * 60 * kWidth, 245 * kHeight, 50 * kWidth, 50 * kHeight);
        self.button.tag = 10 + i;
        self.button.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.button];
    }
    
}



@end
